package org.zjx.analysis.window;

import lombok.Getter;
import org.zjx.analysis.BaseAnalysis;
import org.zjx.core.IWindow;
import org.zjx.util.ImageUtil;

import java.awt.*;
import java.awt.image.BufferedImage;

@Getter
public class RoleAnalysis extends BaseAnalysis {

    private int level;                 // 角色的等级
    private int vitality;              // 当前活力值
    private int maxVitality;           // 最大活力值
    private int physical;              // 当前体力值
    private int maxPhysical;           // 最大体力值
    private int popularity;            // 角色的人气值
    private int gangContribution;      // 角色在帮派中的贡献
    private int sectContribution;      // 角色在门派中的贡献
    private int potential;             // 角色的潜力
    private long experience;           // 角色的经验值
    private int health;                // 当前气血值
    private int maxHealth;             // 最大气血值
    private int mana;                  // 当前魔法值
    private int maxMana;               // 最大魔法值
    private int rage;                  // 当前愤怒值
    private int maxRage;               // 当前愤怒值
    private int injury;                // 伤势值(0-100, 0为无伤势)

    public RoleAnalysis(IWindow window, BufferedImage screenshot) {
        super(window, screenshot);
    }

    @Override
    protected void analysis() {
        level = Integer.parseInt(identifyTess(areaMap.get("等级")));
        String[] vital = identifyTess(areaMap.get("活力")).split("/");
        vitality =  Integer.parseInt(vital[0]);
        maxVitality = Integer.parseInt(vital[1]);
        String[] phys =  identifyTess(areaMap.get("体力")).split("/");
        physical = Integer.parseInt(phys[0]);
        maxPhysical = Integer.parseInt(phys[1]);
        popularity = Integer.parseInt(identifyTess(areaMap.get("人气")));
        gangContribution = Integer.parseInt(identifyTess(areaMap.get("帮贡")));
        sectContribution = Integer.parseInt(identifyTess(areaMap.get("门贡")));
        potential = Integer.parseInt(identifyTess(areaMap.get("潜力")));
        String[] heal = identifyTess(areaMap.get("气血")).split("/");
        health =  Integer.parseInt(heal[0]);
        injury =  Integer.parseInt(heal[1]);
        maxHealth =   Integer.parseInt(heal[2]);
        String[] ma = identifyTess(areaMap.get("魔法")).split("/");
        mana =  Integer.parseInt(ma[0]);
        maxMana =  Integer.parseInt(ma[1]);
        String[] ra = identifyTess(areaMap.get("愤怒")).split("/");
        rage =  Integer.parseInt(ra[0]);
        maxRage =  Integer.parseInt(ra[1]);
    }

    @Override
    protected void initResources() {
        areaMap.put("等级", new ResolutionArea(ImageUtil.createRect(248 + 5, 32, 300 - 5, 49)));
        areaMap.put("人气", new ResolutionArea(ImageUtil.createRect(248 + 5, 56, 300 - 5, 73)));
        areaMap.put("帮贡", new ResolutionArea(ImageUtil.createRect(248 + 5, 80, 300 - 5, 97)));
        areaMap.put("门贡", new ResolutionArea(ImageUtil.createRect(248 + 5, 104, 300 - 5, 121)));
        areaMap.put("气血", new ResolutionArea(ImageUtil.createRect(71 + 5, 131, 300 - 5, 148)));
        areaMap.put("魔法", new ResolutionArea(ImageUtil.createRect(71 + 5, 155, 166 - 5, 172)));
        areaMap.put("愤怒", new ResolutionArea(ImageUtil.createRect(71 + 5, 179, 166 - 5, 196)));
        areaMap.put("活力", new ResolutionArea(ImageUtil.createRect(211 + 5, 155, 300 - 5, 172)));
        areaMap.put("体力", new ResolutionArea(ImageUtil.createRect(211 + 5, 179, 300 - 5, 196)));
        areaMap.put("潜力", new ResolutionArea(ImageUtil.createRect(211 + 5, 326, 252 - 5, 343)));

        imageMap.put("关闭按钮", new ResolutionImage(ImageUtil.createRect(300, 6, 309, 15),
                ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAA+ElEQVR4XmNYtfPq/4Vrz/23cy/7r2OS8F/bGIGNbTL+T5y9939B1YL/DCBFBy58+L9s68X/Vs4FKIrmrzoFluuZtvM/g71nJVgRSGDplov/TW2zUBTNWnrsv6Fl2n8GU4eC//aeFXDFSzad+79g9Wkwe+6KU/+tXEv+m9rnQRSaOuSjKAYrWglVBJQDYbhCW48ysKdgCkHOsHIq+K9nkfpfH2Y1siKQdUs2n4c7A+RmkOcYbD3K4YrmrDgJdjhIcunmC3CTLRyBbpyy4DBE0fITYEUg3QaWGShuBhnEUFi99H/nxO1wRSAM8iXI3dYuReBgWrD6zH8AIAT/R8hWG/MAAAAASUVORK5CYII=")
        ));
        imageMap.put("界面切换", new ResolutionImage(ImageUtil.createRect(23, 1, 42, 20),
                ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAACqUlEQVR4XqWUXUiTURjHXyL1QtMtU+fc1KnTdJb5te/l67uFGpVYqFgkZVIhGVF5lRSbs6Y0P3AqKpUfF90YduFVQtBlgRVpENWFRRhFRoH3/85zpMU2nZUP/G7OeZ7fOec973mEbXEKyFRatLV7UVfWAHt8HqQoFRzbk8IiRaZgf2w2SlQicgtOYve+UxwhMl6NlgtO2GU5cEnVmL3ajnnvABZ9I2GhHMp1iodRFpMFXX7DmrCqppHLequPY6F/GHOnr2DKVINhrQhfunVDBtNsGMu2Y9pSj+sFDohst3tKzkCotdXxnb3w9GG89AgG0qz/BIlH0yW0JOyFOesgBPpms5evYbK0Gv1qy38xkGqDW2FEuTyPCSOU/Jh9KjN6N+HV1Aw+P1/ESOGhkLlBtQhyCXRj9B28StOmvHk4B4rv75cwpq/xj99ONmEotZzfPhdOaivQrTBxnriH8HJiZl1W3i1xIcXq1xWM2xt5TZciSDihOYCuRCPn58dlf9FmQQtQjYcRIvTsMmyJEOHNnYYtESLslOk5q19Wgk+2Yfz4sMxr3HI9v+UAoTtWzxmznAiQfnu7hPk7D9bl8Q0fr+mIM7B/UfojvKtxwL1D72e4qJavTvF6+lHAXAi/hRkVa0L6Gen8NNkRXeqnR1OJT88W8NR3P2A8GBfVMaFPdxT2KDUEUZYLZ5IB3XITXDFsklinMACWQ7kkczJZt7Ic3oLatadnzqxCs0wHr8LGV3JS0t9AuYxbTDZubEIre368ORRbW1nrycHFZAN60hzoTLTAKTeGxRVvhidFwpDuGCYtZ9GmEVlP1CK/uAlCke0SSoznuZRW6Susxz1zM6as58JCOZRLNQENloQE7dSUWcnbuj0iOaTlByNFKGCJViM/IQcqTRGUGcWcX0+wRBHswzxlAAAAAElFTkSuQmCC")
        ));
        imageMap.put("人物属性-点击", new ResolutionImage(ImageUtil.createRect(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ww8v9f9APwiVlLG8JGxu4jxqCZ/3daJViNx+ZjxkySfTF6qyEcqVeQjlSI5zueP167LCvNe7FNFjhGfmASxce9KatVaPbVxND5sYq8iuZrAt6TYp5p8nf59uHvvPgwODoq6fRbHvz/J+FSTz1gUCnfvd0NPXx903fmdyq5cu0Fzje+b6MSNjE81+cJAHR1TDdkkjOLSL+h8z5cVdC32qSZ3maul4/Pi+KmzjE+RnN8jxvy9vMmFZtZ8xi9Lro2KJWNL62WoPnIUZgWEkTASknfAo/5+yCospmxJyy1g/LLkm7elUZacv9gKlVU1w0EpnjwZoFUI9+s4/2K/LPnBo98R8YlzLZCeV0j7QhTWeWhD/jVQeHwi45clxxUH94Bybz7cS0rtE1Gy5OZKltxcKZJjjnfc7hKucZ+Iayeuq1IZYhK5p8+zz0P+GuNNh6n0FY1rq7i9avLIdXowGLdpGDc7fqVvoucFfuWJ/bLkSNZyoVXoIDN7Nx2R/KLxwdpvnBo8l1pfFckxzzHHMR4+6odjJ07DpvSdVIf7SJx3sUc1OX53Hqg5RJ23tf8CK1avB21wBAQsWQadxpuM+0c89/ULZryK5PjOwC8JDK8gHc2rVAwNDTFeRfLotxOICkNcZ3a2oHyM04AhLjd7zlHD8xzfNbgvR7VevgLVBw8L1/jNKvYqkuNOlyeXC9wFi72K5KipniP7W68iuTlSRT5S/bfkuUX7VP9lwlRxSTsy6P8U4lEtIS4iUwsRsRuYUS0hbt7OFyElIwdCY/XMyOaKm6l/AcZ4vwTJWdkQEbMBnDQ+xm8d6dXcVHFWi14FjZ4Dt6hREKnXQnKGAXKKKpl/KI1EfwHHroPVKFeP9QAAAABJRU5ErkJggg==")
        ));
        imageMap.put("人物属性-未点击", new ResolutionImage(ImageUtil.createRect(0, 35, 22, 108),
                ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAABcAAABKCAYAAABQOs+JAAAGqUlEQVR4Xu2Zd1BURxzHGYORjJOYGSVlEmNFFJFejuPg4DjaARdOMFTpTQFFURTBqIgIY0EEK1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4HPAGgZ9sEXmh9AU0O9y0clroXC/wJb5uiw/JCPRAAAAABJRU5ErkJggg==")
        ));
        imageMap.put("推荐", new ResolutionImage(ImageUtil.createRect(128, 350, 210, 371),
                ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAFMAAAAWCAYAAAC8J6DfAAAGg0lEQVR4Xu1ZaVAUZxDdP4lRqxQECSaIV5nDo8REBQQswRMviNECEeMVISZGURFRiWJEwiG3AiuI4IEBQUQpEKTAqEVUDCgeREzUoBGPWBgVz9IOryczYWZY3FV/pXhVr7a7p7/rTX/f7M5qzK1siDnAmswse5KpsTGZtGtLndu81UodhD7QCXpBN1FDjZF5dzJ6txt1at+evEeOokxffzoZHkNnN2pbqYPQBzp5OY1g3aAfdNRAWdOORuTvOpkTS2Yvod1Dp1K8pSNt7Gb/v+errjOt5yjW6av+NqwfdNQYG5tyRULthCEuqkatbJm4GRPMLAg6aqAqShZCxlraGcSyMC1p+4+V/Pz5AXRgwRra1NuRkgaOV+U3ZdHiICr4ZrUqfm7XftoyqPm5JPYdzf0r44aw2DeYMl28VPFXJQRd1e0Trk6NyTtv89aOtrAzmEDuLD+ZX7U9h0pWRbCd2M9Zll/sF0rPHj1mihB9XfGipcFS+0KfIL6mnMfx6K10PqtA4k+BMaockQ/v1NO1Y6co222hivF9xqjy9SFEhY4aPJ2w9yPeG6o3E60mUrbHYl7Y8dg0SrL+nLLcfdgvT0in0jUxbN+puUylq6OpJCCKtJ+6ULLtVCpeEc58+qCBFwb7UGCsFAfOpO+TfPSdPtGL40rU5JVSzsxlbDfcukP3627To/p77CcNmayaN4gxdeFoiFaVrw+x1aEji4nDVJnQEqv3FMomcbv6d5nfHPZ7B1CUpQPtHDeX0ifMo/wFaylv/mr6OTKFryMGHg6Kpx9d57O9w3kORbxvRzG9nKhoWQj9eaKKcyHyH0dOso0+gKbzA1IdPVXzBiEmbpYy/jpUiRlqZmMwgewZvlRbVsH2w7/qZddKA+Nk+Tmz/DluCHZM8JLaV+3KI3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6lflxfVxYHNgQGpXatNIhBLazSFQp4qhEHCVN+9JaT5Ns5CJH9HdO+pbCLUaoxtdFVCV+Aa23mszvNTWdLXrwKyQEobKyQSvVhIggCjDFdi5N6TqAoCO/aTdp144DeAOC705iciubJwoPW3u7vTd59hrA+glv2q1syOwjKzLt0IEFRclCbSS2snlCH+gEvaAb9PvvPyBz4T+MTsamrDLezeHp1MrmCX2gE/Rqqt8/nl+yyVEmtswAAAAASUVORK5CYII=")
        ));
        imageMap.put("确认加点", new ResolutionImage(ImageUtil.createRect(219, 350, 301, 371),
                ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAFMAAAAWCAYAAAC8J6DfAAAGTElEQVR4Xu2Za1BVVRTH75cytVEQRGrwkZqV4oCWgIIOKr4GEHMs34P4ADNTx0DwmSUgzwBB5MpDxMBEEFTipcKQhi9AEdTSxjFFScsRtdBSWfFfZ87xcvYFLlJfGtbMf85a66y999m/u/e5556rMbe2I5aVLZn16U+mxsZk0qUz9ez0SoeaEfiAE3iBm8xQY2Tej4x69aUeXbuSl9MESvf2o7LQKKqO0XaoGYEPOHmOG8/cwA8cNSBr2t2I/KZN58Iij9W0f9RHFNtnLMX0dfjf62Xnubv/BOa0dKgd8wNHjbGxKa9I0N5h4yY06lDLwofhYmZB4KgBVSxZgNzWx75d2j7Qka7mHBPyhuq4fwzFD3cR8rLihkyk/OVfCPm26Kh3IKW7eQr5lxWAru87nFenxuS1V3lrR1rYG6xDHr6ktjuVl6lglT/7D27Wsmorqil64NgmbVMne3BN7rJNQr+wY74hQl6W3L86fzpyF13KyFNUsjlKqJFVf+8+1Zw6T5kzVwiKHTxJqDdEgAqOGnw7Ye+HvznKYGnfd6PSsAR6Wv+YJwf/u083s193vYYqEtLpQupBjuNtpgvty+P38bmC1YFN8rCja0OF+jRXTz6ntis5xZTl7sP+n3fv0aPa3+jx/Ycc6xsXAszm7ESQVqg3RNjq4MgwcTNVFxgi2KmoZPbxacMAtmRLDN08eY5j+ACtbpto/zFF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98LmvhRvq18ideOQeXSL+yZAvr7cQrUJ+FvOFIaW4r2E92WtzkuqIGObP/8PZdvi3Bx66A5SwPEK6zJWGb470GOGrwPg4/1PG8pC5si2Isp5HWdrYSY6KYRPosH70goVCL8TxpdV4WVrl/Nzs+ynXb3pvK8IPMxih1AIHtLAurFHmsROwc3T51rxG1qJHj1Kmf8TWpr6M5YVXiF1CA9XR+r6npafEWv0JCEpTVDTokChAhLMCkkYtoRm8rAkd+027SpQsn8AYEz05ycYf0CwsPW3uPgxfNG2DF/KQ37dZ2ZPauNZl268ZAsWRBG4Ud0i/wASfwAjfwe/EfkLn0H0YPY1OmjHdz+HbqkH6BDziBly6/fwARK29+UGY2MAAAAABJRU5ErkJggg==")
        ));
        imageMap.put("升级未满足", new ResolutionImage(ImageUtil.createRect(256, 377, 301, 398),
                ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAC4AAAAWCAYAAAC/kK73AAADz0lEQVR4Xs2XuUtlWRCHbzRLO3a32jMaOUN3OAwzwUj3XyCK+4KoiWug4BKIghi5RCIauCCCimDohpiIIiq4ayCIICqogbgEKoJgoNX9VXMur89RRyfpV/Dj3VP3LF+dV6fuvd7bqD/kq36XsLB3Ev5LiIT//KOEhoYGhWCBCTYYDa8X9c8nifwrRt69eSuZmZnS2toqQ0NDMjExERSCBSbYYIQVZo8owkNCpKCgQMbHx7VTZWWltnNycoJCsMCUkJCgrDB7v0W/12iIjJv2oGBTTEyMwOwRgdnl7OzsF6mjo0Pq6ur0Oi8vT4qLi50+RsPDw5Kbm+v4XyLA4+LidNe9iC/JD3hWVtazVFtbK/Pz82JsYGBA/YuLi3J+fu70R21tbdqX4FpaWvyxgbawsOCMs0Vm8Auzx8llt3E+pvr6ensdhS8sLPT7rK+vy9XVlTMWEdDh4aFe5+fn+4E0NzdLU1OT7O/vy93dnTPOVnp6uu46zApO8uN8TNznhPf09MjMzIwuavdZW1tTcNvPpmBVVVV6+DHgMSDoQ2D8Y/bYh+SAp6amPkuDg4O6qO034Lb/5uZGtra2dEFsbGxMUwbjb6cPtre3J93d3c54Ww54cnLyo2IABw+ZXTNto+3tbbm9vfXbaWlpenhtw19aWqrXZWVlkpKSIkdHR3J/f68+grLXD9SLwAMP43NtY2NDqqurZXJy0g+2sbFR5+OAY9wza/T29qrPXtuWA05xf0qUMjQ7O6sLmLbR5uampoVpJyYm6jiTFtPT09LZ2SldXV2aEsbM/BzO1dVVZ11bLwY3Ojs707Sw/SsrK5rjgT4qgW3AU4Gur6+1zYFvaGjQ66KiImdeWw44hf2/xEMAYyH73vLyslxeXjr9j4+PNSWoKsaPTU1NSV9f39dovtjS0pIz50P6X+AnJye6iO1HD4EHqqamRg4ODmR3d1fnqKio8CsKxoG1xzwkNuMb8NjY2CdF/mHl5eXOPWTAA31Ul9PTUx9uZ2fHbzOPMePr7+935jUy4P6OR/z0g/8OYHc2GhkZ0YmpCvY9Ix4gFxcX3/god9Tw9vZ2SUpKkvj4eJ2Hmo+RRuw6fUdHR9U3NzfnzG0EI5sMs8c7Lk5Kjd3RKCMjQ592tj9QJSUlWv5svy1KIbDkvH2PNKAi2X4j8+SE2QsL+1VfFXE+tevfSyZFCJbXB1hh9vTr5/VrdfAIZuftA/E9BbD5kCAQWGH2+H57ExktEa9eKTx/BZ2CSeYDAkZY/W/OqL8/SuSf/0p49AeNiPddTm4wCBaYYIMRVpg/A7+Rl4s29OamAAAAAElFTkSuQmCC")
        ));
        imageMap.put("升级满足", new ResolutionImage(ImageUtil.createRect(256, 377, 301, 398),
                ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAC4AAAAWCAYAAAC/kK73AAAEaklEQVR4Xs2Xf0yVVRjH33/Kkqb8vJAhFM7ZhvxYqYAoBURCiCUrW4yNlYb0Rz8ph/0argyBMSAvFzAt8UeiiMsE9SLqQEcjycBEhEGWkmJqqAXVcnzj+9y9d9f3XAr6p3u27+45z/s85/mc8z7ve8+rufvdD5sC4eHhDc973OB59yT4TLrDJUQWMpGNjDqv5hceCd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nwTEVmjWdcHlz4jjQ66ir0j0dZaKpidxRvNcvBaDdq+5KXBbZqUaZyrTgoESUzkxU7xd3mP+fa8FQ5l2seHj5yVKSRKzIG/N8iMMWN/TRqOZ6eHgYya/L1M2WKGHj64vtSd3YFcUNZHlsXrET6jDBhJbMm33CmAHhNnizwvBVcGR1dQWQhE9nISFb7N6dfWAR8g+fAdF+grIjnXT65riCykIlsZCQrmf8GlQBbV2CTiBQAAAAASUVORK5CYII=")
        ));
    }

    @Override
    public Rectangle closeArea() {
        return ImageUtil.createRect(300, 6, 309, 15);
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(479, 63, 794, 473);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(141, 3, 196, 15);
    }

    @Override
    public BufferedImage getRefImage() {
        return ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAADgAAAANCAYAAAD8Ma0AAAAEtklEQVR4Xo1V/1NTRxDnz2p/6Yi2jK2ggQGL0AoOypfWtpaRjgJFoKJJFJOQEAxEIkEEpQVEvsuXtFBEURqjIAi2gxhTkkYxKF9E2N7uvffy8gKMn5nN7tvbu9vP3t4l4iPVRdhMSkwOMF6+HebfTGqbnPBxArPjL8Lxs52Qkd8SFkMSz/UnB6rgcG4zxUlyUqYFSWcSmWjl8wQxXB6G6EP2sLXjM69C9fX7Yf6IsAQEGZ+eB6//bdC3SZzHtwi7DlYDQpV1hXwvvAFouTURspZS/K+WaM6HQj4XUWJ2kI1FRUSl2kBn+zMYuyVBGYHJpz5YeL0cXFwZo+KLx35TJ2kxAQQWRy4TM174lBVDjJn65z+ouja6rXQPTlOskqC2apAKG33ETt8nznVDu2OK7GNF7SRZeTe2JriDLbT4ZpUmoI2ijPk8pYbGl5bfkV5eWYPC0h6y23onSI8650i/XOAnVmzsp7UQGxsAE6xL5IJdQzYrhns+ACura2Ctv0tzTrLWF9d7OuuHedY9+dou+t4KMWm1SFAflrx4OohdX1YKBEPjfizuoPGGVifpjv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